import request from '@/utils/request'

// 查询参数列表
export function listAlbaranproveedor(query) {
  return request({
    url: '/goods/albaranproveedor/list',
    method: 'get',
    params: query
  })
}
// 查询参数详细
export function getAlbaranproveedor(configId) {
  return request({
    url: '/goods/albaranproveedor/' + configId,
    method: 'get'
  })
}

// 新增参数配置
export function addAlbaranproveedor(data) {
  return request({
    url: '/goods/albaranproveedor',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateAlbaranproveedor(data) {
  return request({
    url: '/goods/albaranproveedor',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delAlbaranproveedor(configId) {
  return request({
    url: '/goods/albaranproveedor/' + configId,
    method: 'delete'
  })
}

export function listGetDuihuo(query,id) {
  return request({
    url: '/goods/albaranproveedorarticulo/list',
    method: 'get',
	params: query
  })
}

export function addIWLEO1wei(row,selectdingdanid) {
  return request({
    url: '/goods/albaranproveedor/updateinsertList?dingdanhao='+selectdingdanid+"&ArticuloID="+row.articuloID+"&CodigoBarra="+row.codigoBarra+"&NombreES="+row.nombreES+"&Precio="+row.precio+"&iVA="+row.iVA+"&comentario="+row.comentario,
    method: 'post'
  })
}

export function updateAudit(data) {
  return request({
    url: '/goods/albaranproveedor/updateAudit',
    method: 'post',
    data: data
  })
}

export function getQueHuo(dingdanhao) {
  return request({
    url: '/goods/albaranproveedor/getFuFanChong?dingdanhao='+dingdanhao,
    method: 'post',
  })
}

export function getDuiHuoAll(dingdanhao) {
  return request({
    url: '/goods/albaranproveedor/getDuiHuoAll?dingdanhao='+dingdanhao,
    method: 'post',
  })
}

export function getShangpinone(dingdanhao) {
  return request({
    url: '/goods/articulo/getLows?ClaseID='+dingdanhao,
    method: 'post',
  })
}


export function getTypeone(query) {
  return request({
    url: '/goods/empleado/getTypeOne',
    method: 'get',
  })
}

export function getTypetwo(query) {
  return request({
    url: '/goods/empleado/getTypeTwo',
    method: 'get',
  })
}

export function getStyle1() {
  return request({
    url: '/goods/proveedor/list',
    method: 'get'
  })
}

export function getStyle2() {
  return request({
    url: '/goods/articuloclase/list',
    method: 'get'
  })
}

export function getShezhi() {
  return request({
    url: '/goods/albaranproveedor/selectActivy',
    method: 'get'
  })
}
export function updateShezhi(data) {
  return request({
    url: '/goods/albaranproveedor/updateActivy',
    method: 'post',
    data: data
  })
}
export function importPhone(data) {
  return request({
    url: '/goods/albaranproveedor/upload',
    method: 'post',
    data: data
  })
}
export function updateshuliang(data) {
  return request({
    url: '/goods/albaranproveedorarticulo/updateshuliang',
    method: 'post',
    data: data
  })
}

export function updatesEidtPerice(data) {
  return request({
    url: '/goods/albaranproveedorarticulo/updatesEidtPerice',
    method: 'post',
    data: data
  })
}

export function updateGys(data) {
  return request({
    url: '/goods/articulo/updateGys?ghs='+data,
    method: 'post',
	data: {"ghs":data}
  })
}

export function delcunzainow(id) {
  return request({
    url: '/goods/albaranproveedorarticulo/delcunzainow?id='+id,
    method: 'post',
  })
}



